/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.cms.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2020-03-13
 * @version 1.0
 * @since 1.0
 */
public class CmsFavoriteCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static CmsFavoriteCriteria create() {
		return new CmsFavoriteCriteria();
	}
	
	public static CmsFavoriteCriteria create(Column column) {
		CmsFavoriteCriteria that = new CmsFavoriteCriteria();
		that.add(column);
        return that;
    }

    public static CmsFavoriteCriteria create(String name, Object value) {
        return (CmsFavoriteCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_favorite", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public CmsFavoriteCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public CmsFavoriteCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public CmsFavoriteCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public CmsFavoriteCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public CmsFavoriteCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public CmsFavoriteCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public CmsFavoriteCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public CmsFavoriteCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public CmsFavoriteCriteria andFavoriteIdIsNull() {
		isnull("favorite_id");
		return this;
	}
	
	public CmsFavoriteCriteria andFavoriteIdIsNotNull() {
		notNull("favorite_id");
		return this;
	}
	
	public CmsFavoriteCriteria andFavoriteIdIsEmpty() {
		empty("favorite_id");
		return this;
	}

	public CmsFavoriteCriteria andFavoriteIdIsNotEmpty() {
		notEmpty("favorite_id");
		return this;
	}
       public CmsFavoriteCriteria andFavoriteIdEqualTo(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.EQUAL, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdNotEqualTo(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.NOT_EQUAL, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdGreaterThan(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.GREATER_THEN, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.GREATER_EQUAL, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdLessThan(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.LESS_THEN, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("favorite_id", value, ConditionMode.LESS_EQUAL, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("favorite_id", value1, value2, ConditionMode.BETWEEN, "favoriteId", "java.lang.Long", "Float");
    	  return this;
      }

      public CmsFavoriteCriteria andFavoriteIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("favorite_id", value1, value2, ConditionMode.NOT_BETWEEN, "favoriteId", "java.lang.Long", "Float");
          return this;
      }
        
      public CmsFavoriteCriteria andFavoriteIdIn(List<java.lang.Long> values) {
          addCriterion("favorite_id", values, ConditionMode.IN, "favoriteId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andFavoriteIdNotIn(List<java.lang.Long> values) {
          addCriterion("favorite_id", values, ConditionMode.NOT_IN, "favoriteId", "java.lang.Long", "Float");
          return this;
      }
	public CmsFavoriteCriteria andUserIdIsNull() {
		isnull("user_id");
		return this;
	}
	
	public CmsFavoriteCriteria andUserIdIsNotNull() {
		notNull("user_id");
		return this;
	}
	
	public CmsFavoriteCriteria andUserIdIsEmpty() {
		empty("user_id");
		return this;
	}

	public CmsFavoriteCriteria andUserIdIsNotEmpty() {
		notEmpty("user_id");
		return this;
	}
       public CmsFavoriteCriteria andUserIdEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.NOT_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdGreaterThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdLessThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_id", value1, value2, ConditionMode.BETWEEN, "userId", "java.lang.Long", "Float");
    	  return this;
      }

      public CmsFavoriteCriteria andUserIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_id", value1, value2, ConditionMode.NOT_BETWEEN, "userId", "java.lang.Long", "Float");
          return this;
      }
        
      public CmsFavoriteCriteria andUserIdIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.IN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andUserIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.NOT_IN, "userId", "java.lang.Long", "Float");
          return this;
      }
	public CmsFavoriteCriteria andRefIdIsNull() {
		isnull("ref_id");
		return this;
	}
	
	public CmsFavoriteCriteria andRefIdIsNotNull() {
		notNull("ref_id");
		return this;
	}
	
	public CmsFavoriteCriteria andRefIdIsEmpty() {
		empty("ref_id");
		return this;
	}

	public CmsFavoriteCriteria andRefIdIsNotEmpty() {
		notEmpty("ref_id");
		return this;
	}
       public CmsFavoriteCriteria andRefIdEqualTo(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.EQUAL, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdNotEqualTo(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.NOT_EQUAL, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdGreaterThan(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.GREATER_THEN, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.GREATER_EQUAL, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdLessThan(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.LESS_THEN, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("ref_id", value, ConditionMode.LESS_EQUAL, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("ref_id", value1, value2, ConditionMode.BETWEEN, "refId", "java.lang.Long", "Float");
    	  return this;
      }

      public CmsFavoriteCriteria andRefIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("ref_id", value1, value2, ConditionMode.NOT_BETWEEN, "refId", "java.lang.Long", "Float");
          return this;
      }
        
      public CmsFavoriteCriteria andRefIdIn(List<java.lang.Long> values) {
          addCriterion("ref_id", values, ConditionMode.IN, "refId", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefIdNotIn(List<java.lang.Long> values) {
          addCriterion("ref_id", values, ConditionMode.NOT_IN, "refId", "java.lang.Long", "Float");
          return this;
      }
	public CmsFavoriteCriteria andRefTypeIsNull() {
		isnull("ref_type");
		return this;
	}
	
	public CmsFavoriteCriteria andRefTypeIsNotNull() {
		notNull("ref_type");
		return this;
	}
	
	public CmsFavoriteCriteria andRefTypeIsEmpty() {
		empty("ref_type");
		return this;
	}

	public CmsFavoriteCriteria andRefTypeIsNotEmpty() {
		notEmpty("ref_type");
		return this;
	}
       public CmsFavoriteCriteria andRefTypeEqualTo(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.EQUAL, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeNotEqualTo(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.NOT_EQUAL, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeGreaterThan(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.GREATER_THEN, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.GREATER_EQUAL, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeLessThan(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.LESS_THEN, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("ref_type", value, ConditionMode.LESS_EQUAL, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("ref_type", value1, value2, ConditionMode.BETWEEN, "refType", "java.lang.Integer", "Float");
    	  return this;
      }

      public CmsFavoriteCriteria andRefTypeNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("ref_type", value1, value2, ConditionMode.NOT_BETWEEN, "refType", "java.lang.Integer", "Float");
          return this;
      }
        
      public CmsFavoriteCriteria andRefTypeIn(List<java.lang.Integer> values) {
          addCriterion("ref_type", values, ConditionMode.IN, "refType", "java.lang.Integer", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefTypeNotIn(List<java.lang.Integer> values) {
          addCriterion("ref_type", values, ConditionMode.NOT_IN, "refType", "java.lang.Integer", "Float");
          return this;
      }
	public CmsFavoriteCriteria andRefCategoryIsNull() {
		isnull("ref_category");
		return this;
	}
	
	public CmsFavoriteCriteria andRefCategoryIsNotNull() {
		notNull("ref_category");
		return this;
	}
	
	public CmsFavoriteCriteria andRefCategoryIsEmpty() {
		empty("ref_category");
		return this;
	}

	public CmsFavoriteCriteria andRefCategoryIsNotEmpty() {
		notEmpty("ref_category");
		return this;
	}
       public CmsFavoriteCriteria andRefCategoryEqualTo(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.EQUAL, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryNotEqualTo(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.NOT_EQUAL, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryGreaterThan(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.GREATER_THEN, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.GREATER_EQUAL, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryLessThan(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.LESS_THEN, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("ref_category", value, ConditionMode.LESS_EQUAL, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("ref_category", value1, value2, ConditionMode.BETWEEN, "refCategory", "java.lang.Long", "Float");
    	  return this;
      }

      public CmsFavoriteCriteria andRefCategoryNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("ref_category", value1, value2, ConditionMode.NOT_BETWEEN, "refCategory", "java.lang.Long", "Float");
          return this;
      }
        
      public CmsFavoriteCriteria andRefCategoryIn(List<java.lang.Long> values) {
          addCriterion("ref_category", values, ConditionMode.IN, "refCategory", "java.lang.Long", "Float");
          return this;
      }

      public CmsFavoriteCriteria andRefCategoryNotIn(List<java.lang.Long> values) {
          addCriterion("ref_category", values, ConditionMode.NOT_IN, "refCategory", "java.lang.Long", "Float");
          return this;
      }
	public CmsFavoriteCriteria andRefTagIsNull() {
		isnull("ref_tag");
		return this;
	}
	
	public CmsFavoriteCriteria andRefTagIsNotNull() {
		notNull("ref_tag");
		return this;
	}
	
	public CmsFavoriteCriteria andRefTagIsEmpty() {
		empty("ref_tag");
		return this;
	}

	public CmsFavoriteCriteria andRefTagIsNotEmpty() {
		notEmpty("ref_tag");
		return this;
	}
        public CmsFavoriteCriteria andRefTagLike(java.lang.String value) {
    	   addCriterion("ref_tag", value, ConditionMode.FUZZY, "refTag", "java.lang.String", "Float");
    	   return this;
      }

      public CmsFavoriteCriteria andRefTagNotLike(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.NOT_FUZZY, "refTag", "java.lang.String", "Float");
          return this;
      }
      public CmsFavoriteCriteria andRefTagEqualTo(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.EQUAL, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagNotEqualTo(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.NOT_EQUAL, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagGreaterThan(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.GREATER_THEN, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.GREATER_EQUAL, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagLessThan(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.LESS_THEN, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagLessThanOrEqualTo(java.lang.String value) {
          addCriterion("ref_tag", value, ConditionMode.LESS_EQUAL, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("ref_tag", value1, value2, ConditionMode.BETWEEN, "refTag", "java.lang.String", "String");
    	  return this;
      }

      public CmsFavoriteCriteria andRefTagNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("ref_tag", value1, value2, ConditionMode.NOT_BETWEEN, "refTag", "java.lang.String", "String");
          return this;
      }
        
      public CmsFavoriteCriteria andRefTagIn(List<java.lang.String> values) {
          addCriterion("ref_tag", values, ConditionMode.IN, "refTag", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andRefTagNotIn(List<java.lang.String> values) {
          addCriterion("ref_tag", values, ConditionMode.NOT_IN, "refTag", "java.lang.String", "String");
          return this;
      }
	public CmsFavoriteCriteria andNoteIsNull() {
		isnull("note");
		return this;
	}
	
	public CmsFavoriteCriteria andNoteIsNotNull() {
		notNull("note");
		return this;
	}
	
	public CmsFavoriteCriteria andNoteIsEmpty() {
		empty("note");
		return this;
	}

	public CmsFavoriteCriteria andNoteIsNotEmpty() {
		notEmpty("note");
		return this;
	}
        public CmsFavoriteCriteria andNoteLike(java.lang.String value) {
    	   addCriterion("note", value, ConditionMode.FUZZY, "note", "java.lang.String", "String");
    	   return this;
      }

      public CmsFavoriteCriteria andNoteNotLike(java.lang.String value) {
          addCriterion("note", value, ConditionMode.NOT_FUZZY, "note", "java.lang.String", "String");
          return this;
      }
      public CmsFavoriteCriteria andNoteEqualTo(java.lang.String value) {
          addCriterion("note", value, ConditionMode.EQUAL, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteNotEqualTo(java.lang.String value) {
          addCriterion("note", value, ConditionMode.NOT_EQUAL, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteGreaterThan(java.lang.String value) {
          addCriterion("note", value, ConditionMode.GREATER_THEN, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("note", value, ConditionMode.GREATER_EQUAL, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteLessThan(java.lang.String value) {
          addCriterion("note", value, ConditionMode.LESS_THEN, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteLessThanOrEqualTo(java.lang.String value) {
          addCriterion("note", value, ConditionMode.LESS_EQUAL, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("note", value1, value2, ConditionMode.BETWEEN, "note", "java.lang.String", "String");
    	  return this;
      }

      public CmsFavoriteCriteria andNoteNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("note", value1, value2, ConditionMode.NOT_BETWEEN, "note", "java.lang.String", "String");
          return this;
      }
        
      public CmsFavoriteCriteria andNoteIn(List<java.lang.String> values) {
          addCriterion("note", values, ConditionMode.IN, "note", "java.lang.String", "String");
          return this;
      }

      public CmsFavoriteCriteria andNoteNotIn(List<java.lang.String> values) {
          addCriterion("note", values, ConditionMode.NOT_IN, "note", "java.lang.String", "String");
          return this;
      }
	public CmsFavoriteCriteria andCtimeIsNull() {
		isnull("ctime");
		return this;
	}
	
	public CmsFavoriteCriteria andCtimeIsNotNull() {
		notNull("ctime");
		return this;
	}
	
	public CmsFavoriteCriteria andCtimeIsEmpty() {
		empty("ctime");
		return this;
	}

	public CmsFavoriteCriteria andCtimeIsNotEmpty() {
		notEmpty("ctime");
		return this;
	}
       public CmsFavoriteCriteria andCtimeEqualTo(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.EQUAL, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeNotEqualTo(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.NOT_EQUAL, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeGreaterThan(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.GREATER_THEN, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.GREATER_EQUAL, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeLessThan(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.LESS_THEN, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("ctime", value, ConditionMode.LESS_EQUAL, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("ctime", value1, value2, ConditionMode.BETWEEN, "ctime", "java.util.Date", "String");
    	  return this;
      }

      public CmsFavoriteCriteria andCtimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("ctime", value1, value2, ConditionMode.NOT_BETWEEN, "ctime", "java.util.Date", "String");
          return this;
      }
        
      public CmsFavoriteCriteria andCtimeIn(List<java.util.Date> values) {
          addCriterion("ctime", values, ConditionMode.IN, "ctime", "java.util.Date", "String");
          return this;
      }

      public CmsFavoriteCriteria andCtimeNotIn(List<java.util.Date> values) {
          addCriterion("ctime", values, ConditionMode.NOT_IN, "ctime", "java.util.Date", "String");
          return this;
      }
}